'''
Created on 2017年4月5日

@author: Administrator
'''
import numpy as np
import matplotlib.pyplot as plt

def f(t):
    return np.exp(-t) * np.cos(2*np.pi*t)

t1 = np.arange(0.0, 5.0, 0.1)
# t2 = np.arange(0.0, 5.0, 0.02)

plt.figure(1)
plt.subplot(211)
# plt.plot(t1, f(t1), 'bo', t2, f(t2), 'k')
'''
"."point","pixel"o"circle"v"triangle_down
"^"triangle_up"<"triangle_left">"triangle_right"1"tri_down
"2"tri_up"3"tri_left"4"tri_right"8"octagon
"s"square"p"pentagon"*"star"h"hexagon1"H"hexagon2
"+"plus"x"x"D"diamond"d"thin_diamond
'''
plt.plot(t1, f(t1), '*')#构成线的点类型：'bs'正方形 bo 球 g^三角形
# plt.subplot(212)
# plt.plot(t2, np.cos(2*np.pi*t2), 'r--')
plt.show()